﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucFilterForum.ascx.cs"
    Inherits="WCrawler.Controls.ucFilterForum" %>
<style type="text/css">
    *
    {
        margin: 0;
        padding: 0;
    }
    .div
    {
        width: 250px;
        float: left;
    }
    .div span
    {
        float: left;
        width: 100px;
        clear: both;
    }
    .divCheckBox
    {
        width: 150px;
        float: left;
    }
    .dropdownlist
    {
        width: 100px;
    }
</style>
<script type="text/javascript" src="../Scripts/jquery-1.4.1.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $("[id*='DropDownList']").addClass("dropdownlist")
    });
</script>
<div class="form">
    <h1>
        A Simple Tableless Form
    </h1>
    <div class="div">
        <span>Url</span>
        <asp:TextBox ID="txtSearchUrl" runat="server"></asp:TextBox><br />
        <span>Location</span>
        <asp:DropDownList ID="LocationDropDownList" runat="server" DataSourceID="LocationLinqDataSource"
            DataTextField="LocationName" DataValueField="LocationId" AppendDataBoundItems="True">
        </asp:DropDownList>
        <br />
        <span>Type</span>
        <asp:DropDownList ID="ForumTypeDropDownList" runat="server" DataSourceID="ForumTypeLinqDataSource"
            DataTextField="TypeName" DataValueField="ForumTypeId" AppendDataBoundItems="True">
        </asp:DropDownList>
        <br />
        <span>Content</span>
        <asp:DropDownList ID="ContentTypeDropDownList" runat="server" DataSourceID="ContentTypeLinqDataSource"
            DataTextField="ContentName" DataValueField="ContentTypeId" AppendDataBoundItems="True">
        </asp:DropDownList>
        <br />
    </div>
    <div class="div">
        <span>Language</span>
        <asp:DropDownList ID="LanguageDropDownList" runat="server" AppendDataBoundItems="True"
            DataSourceID="LanguageLinqDataSource" DataTextField="LanguageName" DataValueField="LanguageId">
        </asp:DropDownList>
        <br />
        <span>Group</span>
        <asp:DropDownList ID="GroupDropDownList" runat="server" AppendDataBoundItems="True"
            DataSourceID="GroupLinqDataSource" DataTextField="GroupName" DataValueField="GroupId">
        </asp:DropDownList>
        <br />
        <span>Login Status</span>
        <asp:DropDownList ID="LoginStatusDropDownList" runat="server" AppendDataBoundItems="True">
            <asp:ListItem Value="1">Succesful</asp:ListItem>
            <asp:ListItem Value="0">Invalid</asp:ListItem>
        </asp:DropDownList>
        <br />
        <span>Status Code</span>
        <asp:DropDownList ID="StatusCodeDropDownList" runat="server" AppendDataBoundItems="True"
            DataSourceID="StatusCodeLinqDataSource" DataTextField="Code" DataValueField="StatusCodeId">
        </asp:DropDownList>
        <br />
    </div>
    <div class="divCheckBox">
        <asp:CheckBox ID="chkUseIcons" runat="server" Text="Use Icons" /><br />
        <asp:CheckBox ID="chkUseTag" runat="server" Text="Use Tags" /><br />
        <asp:CheckBox ID="chkUseReCaptcha" runat="server" Text="Use ReCaptcha" /><br />
        <asp:CheckBox ID="chkUseHideTag" runat="server" Text="Use Hide Tag" /><br />
    </div>
    <div class="divCheckBox">
        <asp:CheckBox ID="chkIsApproved" runat="server" Text="Is Approved" /><br />
        <asp:CheckBox ID="chkUsePrefix" runat="server" Text="Use Prefix" /><br />
        <asp:CheckBox ID="chkIsHostContraint" runat="server" Text="Is Host Contraint" /><br />
    </div>
    <asp:LinqDataSource ID="LocationLinqDataSource" runat="server" ContextTypeName="WCrawlerLib.LinqDataClassesDataContext"
        EntityTypeName="" TableName="Locations">
    </asp:LinqDataSource>
    <asp:LinqDataSource ID="ForumTypeLinqDataSource" runat="server" ContextTypeName="WCrawlerLib.LinqDataClassesDataContext"
        EntityTypeName="" TableName="ForumTypes">
    </asp:LinqDataSource>
    <asp:LinqDataSource ID="ContentTypeLinqDataSource" runat="server" ContextTypeName="WCrawlerLib.LinqDataClassesDataContext"
        EntityTypeName="" TableName="ContentTypes" EnableUpdate="True">
    </asp:LinqDataSource>
    <asp:LinqDataSource ID="LanguageLinqDataSource" runat="server" ContextTypeName="WCrawlerLib.LinqDataClassesDataContext"
        EntityTypeName="" TableName="Languages" OrderBy="LanguageName">
    </asp:LinqDataSource>
    <asp:LinqDataSource ID="GroupLinqDataSource" runat="server" ContextTypeName="WCrawlerLib.LinqDataClassesDataContext"
        EntityTypeName="" TableName="ForumGroups">
    </asp:LinqDataSource>
    <asp:LinqDataSource ID="StatusCodeLinqDataSource" runat="server" ContextTypeName="WCrawlerLib.LinqDataClassesDataContext"
        EntityTypeName="" TableName="StatusCodes">
    </asp:LinqDataSource>
</div>
